<?php
function findComment($pid,$pcoid){
	include ("conn.php");
	//下面是读取数据
	$sql = "SELECT * FROM comment WHERE pid=".$pid." AND pcoid=".$pcoid;
	$result = $conn->query($sql);
	$arr = array();
	if ($result->num_rows == 1) {
	    // 输出数据
	    $row = $result->fetch_assoc();
	    array_push($arr,$row['pid'],$row['uid'],$row['pcoid'],$row['content'],$row['likeNum'],$row['date']);
	}
	return $arr;
}

?>